IR sensor program

Sorry that program i had corrected sent a old program by mistake.
could u please help in why that could is not getting dumpped even when i am apply external power supply(reason being that the sensor and power led of 1w should not drain the current from the arduino on board pins)