Is there any thing can i used to detect an bacteria or viruses for iot project?

I want to make a device that can detect a viruses or bacteria

Bacteria and viruses are essentially everywhere, so any sensor that works would always detect them.

The only exceptions would be extremely carefully sterilized environments, or fires, ovens, molten metals etc. where temperatures exceed about 150C.

Making such a detector is not an Arduino project.