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:
Once recheck telegram conf.py file and make ensure whether the entered credentials are given correct or not…Conf.py file will contain telegram_chat_id,telegram_bot_id.telegram_chat_id must be under the description where it starts from t.me/xyz copy the text after the /…other one is telegram_bot_id where it is issued by bot_father so that it must starts from bot and now copy that id thereafter.