This work presents a Secure and Energy Efficient TDMA based MAC Protocol in Wireless Sensor Networks. The presented technique is handled in the following stages. In the initial phase, adaptable step size grey wolf inspired (ASGWI) clustering methodology is presented for producing viable cluster trees by optimal selection of cluster heads. The ASGWI clustering decreases the expense of finding the ideal situation for the head hubs in a cluster. In the second stage, reliable routing is provided by the adaptive quantum logic (AQL) coding to advance the system security in WSN. At last, the energy effective secure information correspondence approach is proposed inside the cluster instead of the base station for TDMA scheduling. Here, the determination models of the objective function are created dependent on the remaining energy, Headcount, intra-cluster distance, and node degree. The presented TDMA scheduling for Cluster-tree topology in WSNs meets the practicality and the energy demands. The exploratory outcomes show the predominance of the introduced approach contrasting and the current strategies regarding network throughput, end-to-end delay, packet delivery ratio, and the remaining energy level of the nodes