Arduino sketch to check whether power is on