The web of things, which is widely called the Internet of Things (IoT), aids as a part of our day-to-day life activities in today’s world. It has great potential to change the modern world. Although it benefits us in several ways, IoT possesses several issues, such as privacy, data confidentiality, and effective storage. The IoT community is extremely concerned about the quantum of information that may be leaked out. Hence, a secured atmosphere is mandatory for IoT devices to transmit data over public networks. In this article, a secure and optimized real-time system is proposed as an alternative methodology for data transmission from healthcare sensors to the cloud, either through local area or wide area networks. An effective optimization technique is also implemented to provide better storage. © 2019 ASTM International. All rights reserved.