Sensors have been with us since the fifties. Inexpensive temperature and humidity sensors are so useful that lots of factories have them to tune the controls within compartmentalized production areas. By the 22nd Century, one would expect sensors everywhere looking across the electromagnetic spectrum frequencies and reporting back to a central sensor network, and reporting any anomalies on a room by room basis.
And yet, we have anomalous intruders and phenomena that the crew have to hunt down, isolate, locate, etc. That makes no sense.
While the hunting aspects adds to the claustrophic effects of that, or peril, a lot more interesting science could have been discussed, tactics due to sensor detection, creative strategies using one's noggin instead of fists or phasers, etc.