Sometimes you want to control the brightness of the LED according to the brightness of the room, so this circuit is there for you!
What way it may look like if you build this circuit with an Arduino kit:
We will build this step-by-step in TinkerCad Circuits:
STEP 1: Connect the Arduino board with the breadboard
STEP 2: Land one side of the photoresistor onto either positive bus, and connect other side to any empty row
STEP 3: Add LED
Long leg connected to the same row as the photoresistor Other leg can land in any other free row
STEP 4: Add 220 Ohm Resistor
One leg lands in same row as short LED leg other leg lands anywhere in either negative bus
STEP 5: Test your circuit!
Click “Start Simulation”, your circuit should light up. The resistance of a photoresistor decreases with increasing light, so the LED will start off bright in a well lit room!