The :Fermion: MEMS Ammonia NH3 Gas Detection Sensor is a high-precision module designed to detect ammonia gas concentrations in the range of 1-300ppm. Utilizing advanced MEMS (Micro-Electro-Mechanical Systems) technology, this sensor offers reliable and accurate measurements, making it ideal for various environmental monitoring applications. Common use cases include air quality monitoring, industrial safety, and agricultural applications.
Parameter | Value |
---|---|
Detection Range | 1-300 ppm |
Operating Voltage | 3.3V - 5V |
Operating Current | < 10mA |
Response Time | < 30 seconds |
Recovery Time | < 60 seconds |
Operating Temperature | -20°C to 50°C |
Humidity Range | 15% - 90% RH (non-condensing) |
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | AOUT | Analog output signal |
4 | DOUT | Digital output signal (threshold) |
// Include necessary libraries
const int analogPin = A0; // Analog input pin connected to AOUT
const int digitalPin = 2; // Digital input pin connected to DOUT
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(digitalPin, INPUT); // Set digital pin as input
}
void loop() {
int analogValue = analogRead(analogPin); // Read the analog value
int digitalValue = digitalRead(digitalPin); // Read the digital value
// Convert the analog value to a voltage
float voltage = analogValue * (5.0 / 1023.0);
// Print the analog value and voltage to the serial monitor
Serial.print("Analog Value: ");
Serial.print(analogValue);
Serial.print(" - Voltage: ");
Serial.print(voltage);
Serial.println("V");
// Check if the digital output is high
if (digitalValue == HIGH) {
Serial.println("Ammonia concentration exceeds threshold!");
} else {
Serial.println("Ammonia concentration is below threshold.");
}
delay(1000); // Wait for 1 second before the next reading
}
By following this documentation, users can effectively integrate the :Fermion: MEMS Ammonia NH3 Gas Detection Sensor into their projects, ensuring accurate and reliable ammonia gas detection.