After interrupt function unexpected value

worked with a KWH meter some time ago - Arduino Playground - EEM12L-32AKWhMonitoring -