Solar automatic power supply sensor