The Internet of Things (IoT) is an emerging technology in this era. The luxury of technology comes with security, which is a noteworthy issue to be addressed. The paper’s soul purpose is to provide security to the data in the IoT environment. Data collected from multiple IoT devices have been provided multilevel security using elliptical curve cryptography (ECC) and fully homomorphic encryption(FHE), mitigating the generalized cryptographic attacks. The data are collected at the roof and on customization sent to the cloud. The proposed method enhances the security by preventing modification of data from any brute-force attack using a short key with less computation power.