Canary in Coalmine
Miners used to take canaries into the mines to monitor the air quality. When the bird died, they knew the air was toxic and they could retreat from the mine.