Error in code for, Sending an Email when Temperature Crosses Threshold

@pednekarruchika Seems that the issue is due to you trying to use both spaces and tabs in the same sentence. Different editors interpret the tab differently. Some take a single tab to be of 3 spaces while some take it to be of 4 spaces.
I suggest, that you copy the code in a text editor like Sublime text and replace all tabs with spaces and then try running it.