The breakdown in a machine created by a fault will greatly affect the plant operation. The frame work of fault diagnosis of machines using machine learning techniques is an established area. Here, the fault diagnosis system is implemented with the help of wireless sensor networks (WSN). Each machine in the plant is fitted with sensors (node) from which the fault diagnosis is carried out. The signals/messages from each node are transmitted to a base station, which acts as a central control unit for the entire plant. Fault diagnosis using WSN in a factory setup has few challenges. The major issue in WSN is the life time of the nodes, as they are situated far away from base station in many plants like thermal power plant, refinery, and petroleum industries. To address the life time of the nodes many researchers have developed many protocols like LEACH, SEP, ERP, HCR, HEED, and PEGASIS. The plants need customisation in terms of choosing suitable algorithms and choosing location of the base station within the plant for better life time of the nodes. This paper presents results of both experimental and simulation studies of a typical plant, where the vibration signals from each machine are acquired and through machine learning techniques the fault diagnosis is performed with the help of wireless sensor networks. For illustrative purpose, a well reported bearing fault diagnosis data set is taken up and fault diagnosis case study was performed from wireless sensor networks point of view (experimental study). Here, at every stage, the computational time is taken as a primary concern which affects the life time of the sensor nodes. Then, the WSN of 18 sensor nodes representing 18 machines with LEACH protocol is simulated in Matlab© to study the life time characteristics of each node while keeping base station at different locations. The life time of different nodes is heavily dependent on the location of the base station. Finding the right location of the base station for a given plant is another contribution of this work.