Everytime the sensor value is being printed as -999, request was unsuccessful, skipping. How to correct this?
- the analog Read data (response) was being [not equal to 1]–>this condition is being true so this is the first reason to returning a error, you should check the data variable .
2.finally the second reason is , check the telegram_chat_id, telegram_bot_id and threshold value if there is any mistake it will print a Exception(e).
Attach your coding screenshot in the forum
I hope it will usefull for you:
Please share your code and output terminal which shows the error.