From 65e8664c69d2587c6f5506095b2fed974bf70b28 Mon Sep 17 00:00:00 2001 From: miguel5612 Date: Thu, 26 Mar 2020 14:46:14 -0500 Subject: [PATCH] Added options to custom --- examples/smokeDetector/smokeDetector.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/smokeDetector/smokeDetector.ino b/examples/smokeDetector/smokeDetector.ino index d4f9f9d..4ac9133 100644 --- a/examples/smokeDetector/smokeDetector.ino +++ b/examples/smokeDetector/smokeDetector.ino @@ -46,6 +46,14 @@ void setup() { //Remarks: Configure the pin of arduino as input. /************************************************************************************/ MQ4.init(); + + // Calibration setup + MQ4.setR0(3.86018237); + + /* + //If the RL value is different from 10K please assign your RL value with the following method: + MQ4.setRL(10); + */ } void loop() {