My ldr measures the variation in light intensity but how to set the boltdevies to alert me when the light intensity goes very down
Even I have this the one possibility what I feel is we can either add a sms alert or a buzzer code to IDR code
If you ever try this possibility do let know the results
In bolt cloud,you can see the alert configuration on left side just go there and configure according to your specifications.You said you must be notified when light intensity goes down means Analog data must be high near to 1023.So,make near to that range.You will get only push notifications,for mail and sms you must be a pro-user by paying ₹50/month.
We need specify any condition in program for alert or not
Just change the code like in the lecture it should do the job, then you can retry compiling it.
Refer this code-
change the threshold value in conf.py as needed and add this condition in the code -
if sensor_value <= conf.threshold:
print(“Sensor value has reached below threshold”)
message = "Alert! Sensor value has reached below " + str(conf.threshold) +
". The current value is " + str(sensor_value)
telegram_status = send_telegram_message(message)
print(“This is the Telegram status:”, telegram_status)