1
0

Refactor MQ7 sensor implementation: remove old files and introduce MQ7v2 with updated reading logic

This commit is contained in:
Jose
2025-05-02 17:32:47 +02:00
parent b8666c1727
commit e57222f46d
6 changed files with 44 additions and 58 deletions

View File

@@ -0,0 +1,10 @@
#include <Arduino.h>
#define MQ7_PIN 34
#define VCC 5.0
#define ADC_RES 1023.0
#define RL 10000.0 // 10kΩ
#define RO 10000.0 // Resistencia del aire limpio
void MQ7_Init();
void MQ7_Read(float &sensorValue);