Having issues using an LDR and a Potentiomer for my AIr Conditioning System..

bubulindo:
you have 4 LEDs...

you say My LED is blinking. Is that all of them?

I notice that when you activate teh LEDs, you also send some strings through the serial port... have you considered inspecting them to see what is happening?

Well...it technically starts with the one of them. Based on the room temperature (e.g. if its 21 C or less, the green LED is lit. Otherwise, if its above 21 C the yellow LED goes on while the green LED turns off).
Yes i have. There don't seem to have any Delay statements around. Aside from the button press at the loop function...And the 4th LED doesn't concern me as much.