The Adafruit MS8607 PHT Sensor is a versatile and precise environmental sensor capable of measuring pressure, humidity, and temperature (PHT). This sensor is an ideal choice for a wide range of applications, including weather stations, environmental monitoring, and HVAC (heating, ventilation, and air conditioning) control systems. Its compact form factor and I2C communication make it easy to integrate into hobbyist and professional projects alike.
Pin Number | Name | Description |
---|---|---|
1 | VDD | Power supply (1.5V to 3.6V) |
2 | GND | Ground connection |
3 | SDA | I2C Data line |
4 | SCL | I2C Clock line |
5 | NC | No connection (do not connect) |
To use the Adafruit MS8607 PHT Sensor in a circuit:
#include <Wire.h>
#include "Adafruit_MS8607.h"
Adafruit_MS8607 ms8607;
void setup() {
Serial.begin(9600);
while (!Serial) { delay(10); } // Wait for serial console to open
Serial.println("Adafruit MS8607 PHT Sensor Test");
if (!ms8607.begin()) {
Serial.println("Failed to find MS8607 sensor");
while (1) { delay(10); }
}
}
void loop() {
// Read and print out the temperature, humidity, and pressure
Serial.print("Temperature: ");
Serial.print(ms8607.readTemperature(), 2);
Serial.println(" degrees C");
Serial.print("Humidity: ");
Serial.print(ms8607.readHumidity(), 2);
Serial.println(" %");
Serial.print("Pressure: ");
Serial.print(ms8607.readPressure(), 2);
Serial.println(" hPa");
delay(5000); // Wait 5 seconds between readings
}
Q: Can the sensor be used outdoors? A: Yes, but it should be protected from direct exposure to water and sunlight.
Q: What is the default I2C address of the MS8607 sensor? A: The default I2C address is 0x76 for pressure and temperature, and 0x40 for humidity.
Q: How can I calibrate the sensor? A: The MS8607 sensor is factory-calibrated. However, for critical applications, you may perform software-based calibration using known reference values.
For further assistance, consult the Adafruit MS8607 PHT Sensor datasheet or contact Adafruit's support forums.