Smart technologies are widely applied in the fields of building, health, ecological monitoring, security, smarthome, vehicles, planes, and shipboard. Optimized secure clustering algorithms for wireless sensor networks (WSNs) are the fundamental concerns for smart technologies. Cluster-based WSN has a lot of boons including energy efficiency, less load, better network communication, better scalability, efficient topology management, and minimized delay. Consequently, clustering is a key research area in the WSN. This paper addresses a distributed clustering algorithm with minimum overhead. The algorithm is based on energy, distance, buffering, processing capabilities, and degree parameters for a better WSN performance. The performance measures of the proposed secure clustering algorithm are examined through simulation considering clustering efficiency, consumed energy, network lifetime, and resistance to attacks. The obtained results demonstrate the effectiveness of the proposed clustering algorithm in a constrained environment.