It is embarassing but it was (of course) just a little thing:
The 5V are naturally only supplied when the arduino is connected via USB. That was the reason for having no voltage at the Sensorpins.
Another thing that led me in confusion was that I messed something up when soldering a extension to the cables from the light switches. I alternated the polarity….
Maybe my mistakes will help others in the future.