Noob: Connecting Grove Temp&Humi to ARch GPRS??

Hi there, I found a nice mbed library for the temp og Humidity Grove sensor. I have plugged it in a try the code resulting in Err 7.

I have plugged it into the analog socket. Hence the P0_12 pin-name.

[code]#include “mbed.h”
#include “DHT.h”
#include “USBSerial.h”

DigitalOut myled(LED1);
//Virtual serial port over USB
USBSerial serial;
DHT sensor(P0_12,SEN11301P); // Use the SEN11301P sensor

int main() {
int err;
serial.printf("\r\nDHT Test program");
serial.printf("\r\n******************\r\n");
wait(1); // wait 1 second for device stable status
while (1) {
myled = 1;
err = sensor.readData();
if (err == 0) {
serial.printf(“Temperature is %4.2f C \r\n”,sensor.ReadTemperature(CELCIUS));
serial.printf(“Temperature is %4.2f F \r\n”,sensor.ReadTemperature(FARENHEIT));
serial.printf(“Temperature is %4.2f K \r\n”,sensor.ReadTemperature(KELVIN));
serial.printf(“Humidity is %4.2f \r\n”,sensor.ReadHumidity());
serial.printf(“Dew point is %4.2f \r\n”,sensor.CalcdewPoint(sensor.ReadTemperature(CELCIUS), sensor.ReadHumidity()));
serial.printf(“Dew point (fast) is %4.2f \r\n”,sensor.CalcdewPointFast(sensor.ReadTemperature(CELCIUS), sensor.ReadHumidity()));
} else
serial.printf("\r\nErr %i \n",err);
myled = 0;
wait(5);
}
}[/code]

Try this one(https://mbed.org/users/yihui/code/DHT/) instead. Perhaps the library you used depends on time() function, but LPC11U24’s time() doesn’t work, LPC11U24 doesn’t have a RTC.