Could our cell devices detect CO and other poisonous gases in the future?

Once in a while, actually more frequently than it should, people die intoxicated with poisonous gases. It would be pretty helpful if our cellphones could detect and alarm us. Do you think this would be possible? How far into the future?