I am using this sensor Bosch Pressure Sensor Combined PST-F 1 in combination with a arduino uno.
The data sheet for the sensor : Data Sheet
I have it connected lik this
The code i am using is the
int oilPressurePin = A1;
int oilTempPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int oilPressureSignal = analogRead(oilPressurePin);
int oilTempSignal = analogRead(oilTempPin);
delay(100);
Serial.print(oilPressureSignal);
Serial.print(oilTempSignal);
}
But the output of both oilPressureSignal
and oilTempSignal
is always 0.
I have tried connecting a 4.6k resistor between 5V and and A0 than i get a value of around 80.
But it doesn't change with the temp of the sensor.
Is my sensor broken or am i doing something wrong?