Design, Modeling and Simulation of a Miniaturized Gas Sensor