A Python script polls the API every minute; if methane exceeds 1000 ppm, it automatically closes a motor-operated valve via Modbus.