The sensors often start with a different analog reading as their baseline level. Create a function to compare readings after they stabilize and reference in the if-else statements at the bottom of loop().
This could also potentially be computed in a dedicated python file; arduinosmoke.ino sends the data via serial communication to a normalization.py file (ROS publisher), which then sends data elsewhere.
https://github.com/jlthev/smoke-detection-113/blame/1874bb82df232731512dad80a96d859740a392e6/arduinosmoke.ino#L27-L28
The sensors often start with a different analog reading as their baseline level. Create a function to compare readings after they stabilize and reference in the if-else statements at the bottom of loop().
File: arduinosmoke.ino