In this paper, we present a low-cost method to study the Gay-Lussac's law. We use a heating wire wrapped around the test tube to heat the air inside and make use of a solid state pressure sensor which requires a previous calibration to measure the pressure in the test tube.