added light level checking with alerting