For the past six months my sensor kept shutting down at night time, and the only thing that helped was restarting it. I even had it plugged into a smart USB socket just for that. I couldn’t figure out what was causing it. But after blocking internet access specifically for this sensor, the problem completely disappeared. Thank you @DavidA3591 !