Reading sensor values from a device. We read the sensor value from a selected pin.Here the programming language used is python. The response is returned by a cloud and converted to JSON object.The alert messages are sent to a telegram channel created. It returns -999 in case of error.