I created a project that uses LDR and turn on the LED whenever an analogRead of below 400, This project works perfect in the arduino uno board. Unfortunately when i upload it to ATTiny2313, the LED turns on automatically even if there is enough light striking the LDR.. I check all the pins i used, and it is all at the right pins connection especially the input Pins. I put the LDR to the Pin 9 which is AIN01. Can anyone explain to me. ?? do you know the solution?