By adding another set of LED lights, I was able to create the number 1 and 0, representing binary and ON and OFF state. The codes of the LED "1" and LED "0" are both also opposite:
FMP: Ones and Zeros (Digital Nature)
Later when I almost completed my project, I came across FRITZING which I wish I would have known about in the very beginning of my project as it allows one to visually simulate a the workings of a circuit board, in my case the arduino. I would have known beforehand how the current flows into the breadboard thus would have been able to know right away where to put the wires and LEDs.
Anyways, this is how the connections of my arduino device looks like with the connections.
In future projects, I would use Fritzing in the early stages of my planning before the execution.
OPPOSITES ATTRACT
1 = turns ON when it senses a DECREASE in brightness/ when it's DARK
0 = turns ON when it senses and INCREASE in brightness/ when it is LIGHT
As it may be a bit confusing, this development of my LED Nightlight has become some sort of Light and Darkness indicator. But instead of mimicking the state of brightness, it does the opposite. When it is Bright, the Zero (0) stays on indicating that the sensor detects brightness which is the OFF state, and when it is Dark, the One(1) lights up, indicating the sensor has detected a drop in brightness, which is the ON state in the device.
Put in an IF statement:
if Zero (0) is ON it means the device is OFF
and One (1) is OFF meaning the state of the device is OFF
if One (1) is ON it means the device is ON
and Zero (0) is OFF meaning the state of the device is ON
I also tested the device in constant darkness and using a torch to give brightness to see if it will still work even if the dark is more overpowering.
This does work and proves that the sensor is more sensitive to the nearest state of brightness it senses.