Current slide {CURRENT_SLIDE} of {TOTAL_SLIDES}- Best Selling in Flow Meters
//I'm able to get accurate readings (+- 1-2 PSI) from this sensor with the following Arduino code. //Board: Arduino UNO R3 //IDE: Arduino IDE Version 1.8.5 //Opperating System: Windows 10 //Wiring the PSI sensor into the Arduino: //Red wire: +5V //Black wire: GND (Ground) //Yellow wire: Plugs into the Analog 0 pin (A0) void setup() { Serial.begin(9600); } void loop() { float sensorVoltage = analogRead(0); //Reads the data coming in from the PSI sensor on //Arduino pin# A0. int psi = ((sensorVoltage - 102 ) * 175 / ( 921 - 102 )); //Math to convert analog data into PSI. Serial.print("PSI "); //Prints "PSI" to the serial monitor. Serial.println(psi); //Prints the curent PSI value in the serial monitor. delay (5000); //Pauses for 5 seconds between readings. }
Verified purchase: Yes | Condition: New
Verified purchase: Yes | Condition: Pre-owned