Value of sensor pulse_meter after reset of esp8266

Not an direct answer to your problem, but please read this: How to help us help you - or How to ask a good question and especially the info about formatting code. This largely improves the readability of the code in your posts.