Spent the last couple of hours trying to get a simple light sensor reading properly from my setup. Everything looked correct in the code and the wiring seemed solid at first. I was ready to start integrating the data, but the serial monitor just showed nothing but zeros, which was incredibly frustrating. I realized the Nano wasn't getting clean power, even though the voltage read correct in isolation. The problem wasn't the sensor itself; it was that the power jumper wires leading from the breadboard rails to the microcontroller pins weren't seated firmly enough. They were slipping slightly under the weight of the components.
I made sure those power rails were clicked down securely and verified the connections were solid before powering it up again. Now the sensor is reporting proper values. It’s amazing how a tiny physical connection can hold up a whole project.