The basics Internet of things based on Wireless Sensor Network (WSN) has grown rapidly in Industrial Revolution 4.0. Many researchers use the Wireless Sensor Network technology for obtaining the sensor data and stored in the Data Center. The collected data through WSN from an environment was sent to a Data Center. In the Data Center, all the sensor data can be accessed by everyone using their devices. In this case, the user can get the data with a smartphone, laptop, and personal computer through the HTTP Protocol. Data Center without protection from illegal access is extremely dangerous. All the sensor data stored in the data center can be intercepted, tracked, and even changed by a user without access. There is required a security mechanism for protecting all of the data stored in the Data Center. Ciphertext Policy Attributed-Based Encryption can be deployed as a security mechanism for protecting all the sensor data in the Environmental Monitoring. The security mechanism protected Data Center with encryption, decryption, verification, and revocation access for all the users. The only user with the access right can get the sensor data from environmental monitoring. Our security mechanism offers revocation and verification with a dynamic attribute for each user with a lower computational time. We used the CP-ABE with Dynamical attribute and timestamp digital signature based on Elliptic Curve Digital Signature Algorithm (ECDSA) 384 bits.