adafruit/DHT-sensor-library — Issue #1: WProgram.h renamed with V1.0 of Arduino software
Author: putz612
Created: 2011-12-02 05:09:34+00:00
State: open

Just got my board and sensor today. Took me a bit to find this out but its as simple as renaming it in DHT.h or in the release notes they mention another fix. http://arduino.cc/en/Main/ReleaseNotes

The WProgram.h file, which provides declarations for the Arduino API,
has been renamed to Arduino.h. To create a library that will work in
both Arduino 0022 and Arduino 1.0, you can use an #ifdef that checks
for the ARDUINO constant, which was 22 and is now 100. For example:

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif