Canary in a Coal Mine

I am currently prototyping a birdcage that can detect Carbon Monoxide and Methane gas levels. If these levels become unsafe, the cage door is open, allowing the canary to escape.