How to merge three scetches?

PaulS:

const int analogInPin = A0;  

const int lightPin = 2;
const int soundPin = 3;



Sound, light, and gas, huh? Well, that's perfectly obvious.

Yes, sound, light and gas. What is perfectly obvious?