A Miniaturized Optical Sensor with Integrated Gas Cell