This problem is also happen to me. How to fix this?
I'm not really understand with MarkT's answer, i have changed "WProgram.h" to "Arduino.h" but it still doesn't work
Please help me because I'm just newbie
Thank you so much
Btw, i get the example program from here:http://www.dfrobot.com/image/data/DFR0066/SHT1x_Arduino.zip
In what file did you change the "WProgram.h" to "Arduino.h"? If it was your sketch file and you are using a library that's not enough. You have to go into the library folder (in this case it should be something like ".../libraries/SHT1X/") and open the ".cpp" and ".h" files (any basic word processor will be able to open them, they are just plain text files) and make sure to change any reference to "WProgram.h" to "Arduino.h" in those files as well. The good news is you only have to do this once per specific library and that's generally all there is to get most pre-1.0 libraries to work without a problem.