Programming ATtiny85 for 5 sec delay
I think I got the error in my code...In the if statement to read from a pin of attiny, it is supposed to be 'if (PINB &amp; 0b010000)' i.e.reading from pin b4.
Also as @Bimpelrekkie said it for a 5 sec delay it is supposed to be Delay_ms(5000). Anyways thanks for help