how canaries are used in coal mines

how canaries are used in coal mines