This document describes a gas leakage detection and controlling system developed using a MQ-2 gas sensor, Raspberry Pi 3, piezo buzzer, and stepper motor. The sensor detects LPG concentrations and sends the data to the Raspberry Pi. If gas levels exceed a threshold, the system alerts the user by email and sound, and activates the stepper motor to automatically shut off the gas regulator valve. The system is programmed with Python and provides an automatic control action to stop gas flow when leaks are detected.