Help on Rotatry encoder to scroll pages and push button to restart arduino...

raschemmel:
Looks fine. so what's the problem ?

hi, today i also found another problem after field testing, the problem is when there is a power cut the unit and kwh meter gets turned off and once the power comes the counted value gets reset... i cannot use a 12 battery to keep it awake always instead am using a 12v 5amps power supply for the arduino, is there a way to tackle this issue like using a inbuilt memory function ? so even if power cuts and come back the counter must start running from where it left ?