The district spent more than $820,000 on sensors that can detect vapes, chemicals and even someone yelling for help