Code for monitoring a sump pump with a Raspberry Pi