

STEP 1 :
Initialize the code and keep the programming running

STEP 2 :
Combine the condition block to make the program to follow the instruction.

STEP 3 :
We can see that LED will turn on if LDR didn’t detect the light and turn off by itself if there are the light on its surrounding.

STEP 4 :
Plug in USB port.

STEP 5 :
Choose board type and port. Then, upload the code.
