Fixed example

This commit is contained in:
miguel5612
2020-03-26 11:39:50 -05:00
parent d79a303ce9
commit 532a83e186
3 changed files with 9 additions and 5 deletions

View File

@ -21,10 +21,11 @@
#define Voltage_Resolution 5
#define pin A0 //Analog input 0 of your arduino
#define type "MQ-3" //MQ3
#define ADC_Bit_Resolution 10 // For arduino UNO/MEGA/NANO
//#define calibration_button 13 //Pin to calibrate your sensor
//Declare Sensor
MQUnifiedsensor MQ3(placa, Voltage_Resolution, pin, type);
MQUnifiedsensor MQ3(placa, Voltage_Resolution, ADC_Bit_Resolution, pin, type);
//Variables
float CH4, LPG, CO, Alcohol, Hexane, Benzine;