SensorsbeginnerArduino Uno
Uno: Photoresistor Light Sensor
Read the light level from a photoresistor module on A0. Its output falls as the light rises (the LDR sits between AO and GND, as on the real module), so the sketch inverts the reading into a light percentage. An LED on pin 9 glows brighter as the room gets darker.
What you'll simulate
- ✓Real Arduino Uno emulation — cycle-accurate, no hardware needed
- ✓3 interactive components on the canvas
- ✓Serial Monitor included — see output in real time