Air Pressure measuring using Arduino | H710B Pressure sensor with Arduino | Embbbed | Dushyant Singh | Truth Power Info.

Dushyant Singh
Mar 19, 2023

GitHub Link: https://github.com/Dushyantsingh-ds/embedded/blob/main/Projects/Assets/AirPressure_V1/Readme.md

Buy HX710B Amazon: https://amzn.to/3TuhViw
Buy Ardunio Uno Amazon: https://amzn.to/3yWlRz7

Wiring

Code

#include "HX710B.h"
const int DOUT = 2;   //sensor data pin
const int SCLK = 3; //sensor clock pin
HX710B pressure_sensor; void setup() {
Serial.begin(57600);
pressure_sensor.begin(DOUT, SCLK);
}
void loop() { if (pressure_sensor.is_ready()) {
Serial.print("Pascal: ");
Serial.println(pressure_sensor.pascal());
Serial.print("ATM: ");
Serial.println(pressure_sensor.atm());
Serial.print("mmHg: ");
Serial.println(pressure_sensor.mmHg());
Serial.print("PSI: ");
Serial.println(pressure_sensor.psi());
} else {
Serial.println("Pressure sensor not found.");
}
delay(300);

}

Wiring

Output

--

--

Dushyant Singh

Microsoft Certified Trainer | Cloud Architect | .Net Developer