So I've just noticed when I was doing rewiring and running a simple program whereby the photocell detects less light than 300 it will switch led on. But whenever I pressed my finger down on the sensor it still showing in the debug that there was plenty of light.
So I decided to put in a debug statement to check the the darkness / light values on the photocell when I pressed my finger on the same and I found that when the sensor was plugged on the right side of the breadboard (f,g,h,i & j) when i didn't have finger over it kept a value of 434 but as soon as I put any form of darkness on the sensor it would rise up to 700-800.
So then I decided to plug in the same sensor & wiring onto the left side of the breadboard (a,b,c,d & e)
and the result was the exact opposite with the resting value being of 434 and when finger was placed down the value would drop down to 100-200.
Does anyone have a sort of explanation as to 2 sides of the breadboard offered 2 completely opposite readings for the same sensor?