A mid-infrared (mid-IR) porous silicon (PSi) waveguide gas sensor was fabricated. PSi guiding and confinement layers were prepared by electrochemical anodization. Ridge waveguides were patterned using standard i-line photolithography and reactive ion etching. Due to the open pores, light and gas molecules interact in the inside volume, unlike bulk material in which the interaction takes place with the evanescent part of the light. Propagation losses are measured for a wavelength range spanning from λ = 3.9 to 4.55 µm with a value of 11.4 dB/cm at λ = 4.28 µm. The influence of native oxidation and ageing on the propagation losses was investigated. Limit of detection (LoD) of 1000 ppm is obtained with the waveguide sensor at the carbon dioxide (CO2) absorption peak at λ = 4.28 µm.