Help with humidity sensor RHU-222

Hello to all!

I'm really new to arduino and sensors. I've this humidity sensor RHU-222. Detailed specifications can be found here: http://www.desantix.it/dataSheet/RHU-222serie.pdf

I've attached:

pin1 to 5V of arduino pin2 to analog of arduino (pin4) pin3 to ground

NOTHING else.

The output should be a value between 0.7 and 2.81 but I obtain values more or less between 200.

First: Do I have connected this sensor correctly? Second: Do I need to do more operations and manipolations of the obtained value?

It seems that if I breath on the sensor, the values changes.

I've not well understood how to read the tech spec as well, maybe I've done a mistrake.

Thank's!

Simon

The code:

float raw0;
int Pin0 = 4;

void setup() {
Serial.begin(9600);
Serial.println("starting");

}

void loop() {
  delay(1000);
  raw0 = analogRead(Pin0);
  
  Serial.print("Raw: ");
  Serial.println(raw0);

}

The output should be a value between 0.7 and 2.81 but I obtain values more or less between 200

raw0 = analogRead(Pin0);

You haven't done anything to map the 0..1023 range of the analogRead to your 0.7 to 2.81 range.

(FYI 200 / 1024 * 5 = 0.977)

Is the raw value * 5 (voltage) / 1024 = current readed voltage from analog?

Thank you!!! :)

Simon