Wireless system to control indoor spaces quality and security