Learn how to repurpose your spare ESP32 boards into cost-effective presence detection sensors using the Tommy Sense ...
These are some great DIY projects that you can do for cheap.
Sample sketch for the MQ-2 Gas Sensor Module, sold by Circuitrocks. This example reads the analog output of an MQ-2 gas sensor and prints the raw ADC value plus voltage. No external library required.