We have Pi 4 gateways in small pump kiosks, each reading a flow meter and two pressure transmitters and sending to Hermetry. Three of them reboot at random times, maybe once or twice a week, usually in the afternoon. No pattern in the logs except that kernel messages before the reboot sometimes mention undervoltage.
Two questions: how does the Pi actually know it isn’t getting enough power, there’s no ADC on the 5 V rail that I know of? And can I get that state into Hermetry so I get an alarm before the reboot, instead of finding out from a gap in the charts?