With the rapid development of smart devices and the Internet of Things (IoT) technology, some traditional scenarios are exploring new possibilities. Especially in the field of healthcare, the mixed and large amount of people, the complex and professional data, and the strict environmental requirements on some medical scenes and equipment, all put forward extremely high requirements on the hospital management. Therefore, an efficient and secure Internet of things system is greatly necessary. This paper develops an IoT system that could be deployed in hospitals for various applications. This system supports LoRa, Wi-Fi and other data collection methods, uploads the data to the cloud platform for further processing through secure connection, and finally feeds back to users in real-time through the user interface. This system supports accurate indoor positioning based on UWB, ECG signal detection, environmental monitoring, people flow statistics and other functions.