I am not able to get what is that keyError"value"
In first image, Check Variance=0,
and sms = Sms(conf.SSID, conf.AUTH_TOKEN, conf.TO_NUMBER, conf.FROM_NUMBER) lines
I have corrected those commands, but keyError remains same…
first things first why there is space in the file name while running it.
try printing the variable data , see if you notice whether there is key named value in your data .
may be you are receiving wrong data. maybe your "analogRead’ is not reading correct data.