I've got a new MPX5100DP, which I connected to an Arduino, as follows:
pin 1: Vout to A0 on Arduino (analog in)
pin 2: ground on Arduino ground
pin 3: Vcc on Arduino 5V
This simple code:
| #define MPX5100_PIN A0 | // MPX5100DP sensor pin |
void setup() {
pinMode(MPX5100_PIN, INPUT);
Serial.begin(9600);
}
void loop() {
unsigned int pressureSensorValue;
pressureSensorValue = analogRead(MPX5100_PIN);
Serial.print("Pressure value.....: ");
Serial.println(pressureSensorValue);
delay(2000);
}
... does not produce any other value than 1017.
How can I check, whether this sensor is actually functioning?