Internet of Things and Secure Smart Environments: Success and Pitfalls