I don't see why that's a bad idea. If you can also use dogs to detect COVID[1], surely you can build a machine with some sensor that can do the same.

[1] https://academic.oup.com/pmj/article/98/1157/212/6958858?log...