PCB-integrated optical gas sensor