Bosch sensor PST-F 1 analog read always 0

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

arduino diagram

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?

can you upload your code (using code tags </>)?

Hello demonicmetalcs
Post your current sketch, well formated, with comments and in so called code tags "</>" and a schematic, not a Fritzy diagram, to see how we can help.
Have a nice day and enjoy coding in C++.
Дайте миру шанс

The changes have been made

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.