H2S sensor: Difference between revisions

From wikiluntti
Line 12: Line 12:


== Arduino ==
== Arduino ==
<syntaxhighlight lang="C">
int sensorPin = A0;
int sensorValue = 0;
void setup(){
  Serial.begin(9600);
}
void loop(){
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);
  delay(100);
}
</syntaxhighlight>


== ESP32 Cansat NeXT==
== ESP32 Cansat NeXT==

Revision as of 18:08, 10 March 2025

Introduction

SEN0568 from DFROBOT based on MEMS technology.

https://wiki.dfrobot.com/SKU_SEN0568_Fermion_MEMS_H2S_Sensor_breakout

Connectors

3.3V - 5.0 V

Analog

Arduino

int sensorPin = A0;
int sensorValue = 0;

void setup(){
  Serial.begin(9600);
}

void loop(){
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);
  delay(100);
}

ESP32 Cansat NeXT