What's appen with my analog pin

Thanks for your reply.
That's interesting.
(I have not measure the voltage yet at the wire when the van is at 180°)

The schematic shows a 5V supply. Are you using 5v with your 3.3V Arduino?
No I don't. I power it with 3.3V from my board.

That would mean that the output is not quite linear
I wonder if the code here is reliable. I wonder if I would better write down the value at A0, when the van is at 0°, 45°, 90°,135°, etc, and use a switch(); case, or a if,

or using this


void getHeading(int direction) {
if(direction < 22)
Serial.println("N");
else if (direction < 67)
Serial.println("NE");
else if (direction < 112)
Serial.println("E");
else if (direction < 157)
Serial.println("SE");
else if (direction < 212)
Serial.println("S");
else if (direction < 247)
Serial.println("SW");
else if (direction < 292)
Serial.println("W");
else if (direction < 337)
Serial.println("NW");
else
Serial.println("N");
}

with the value measured at A0.
I am just a bit woried if another Davis Anemomter will return the same value at thr analog output. It should but... (adely, I have another anemometer, but not with the same connector and it is on the field. Then I can not compare yet)