Before starting i'm a novice :) I'm tring to count each time a 5v pump is powered on. I build my sketch with a PC817. The reading works but each time i put the ESP32 in deep sleep mode it triggered as false positive pump power on and it cycle. I use the esp_sleep_enable_ext0_wakeup(GPIO_NUM_33,1); command to read the pump powered on.
Is anybody able to help me solving this issue ?
Thanks for your help !