My temperture sensor program for sms is not working in ubuntu server

i typed the python code in vmware of temperature sensor for sending sms
but it is giving error that time.sleep(10) is unidented code
if anybody had runned program please send to me

Hey @Tanmaychauhan76

Their is problem with your python code
you are getting error “time.sleep(10) is unidented code” which is a indentation error. In python indentation is very important. Indentation in Python refers to the (spaces and tabs) that are used at the beginning of a statement. So in your code check out that if you have right indentation & correct if not then your error will go away.

If you want to know more about indentation in python check out

Still if you have any problem feel free to ask

1 Like

My problem is solved…thank you