Data aggregation and sensors data fusion would be very helpful in a number of developing fields, including deep learning, driverless cars, smart cities, and the Internet of Things (IoT). An advanced smart home application will test the upgraded Constrained Application Protocol (CoAP) using Contiki Cooja. Smart home can enhance people’s comfort. Secure authentication between the transmitter and recipient nodes is essential for providing IoT services. In many IoT applications, device data are critical. Current encryption techniques use complicated arithmetic for security. However, these arithmetic techniques waste power. Hash algorithms can authenticate these IoT applications. Mobile protection issues must be treated seriously, because smart systems are automatically regulated. CoAP lets sensors send and receive server data with an energy-efficient hash function to increase security and speed. SHA224, SHA-1, and SHA256 were tested by the CoAP protocol. Proposed model showed that SHA 224 starts secure sessions faster than SHA-256 and SHA-1. The ChaCha ci. This study proposed enhanced ChaCha, a stream cipher for low-duty-cycle IoT devices. For wireless connections between the IoT gateway and sensors with a maximum throughput of 1.5 Mbps, the proposed model employs a wireless error rate (WER) of 0.05; the throughput rises with an increase in the transmission data rate.