A method for automatically generating an interactive wiring diagram in an industrial automation environment, the method comprising: a) acquiring, by a processor, real-time data associated with devices commissioned in a plant from one or more sensing units (110, 112) disposed at the respective devices, wherein the one or more sensing units (110, 112) comprise a plurality of sniffer devices (110A-N) and a plurality of radio frequency, RF, devices (112A-N), with the sniffer devices (110A-N) being wirelessly connected to the plurality of RF devices (112A-N), wherein the real-time data comprises device information and device connectivity status information, and wherein the plurality of RF devices (112A-N) senses the real-time data and transmits the sensed real-time data to the plurality of sniffer devices (110A-N), wherein the plurality of RF devices (112A-N) are any kind of radio frequency identification devices for sensing and tracking each electrical wiring/connection of the plant, wherein each electrical cable/wire(s) has two RF devices (112A-N) physically attached to the two ends of the electrical cable/wire(s), and wherein the RF devices (112A-N) at each end of the electrical cable/wire(s) communicate with each other and transmit the real-time data to the plurality of sniffer devices (110A-N); b) determining connections between the devices in the plant based on the acquired real-time data using a lookup table; c) generating a wiring diagram of the plant based on the determined connections between the devices, wherein the wiring diagram represents the devices located in the plant and physical connections between the devices; d) dynamically generating an interactive wiring diagram by superimposing the wiring diagram with the device connectivity status information associated with respective connections between the devices; e1) identifying a fault in at least one connection in the plant based on the device connectivity status information of the at least one connection; e2) determining a location of the fault in the at least one connection based on the device information; and e3) computing at least one solution to rectify the fault in the at least one connection; e4) generating an alert indicating that the fault exists in the at least one connection; and e5) displaying the fault in the at least one connection on the interactive wiring diagram of the plant, e6) wherein the interactive wiring diagram displays the location of the fault and the at least one solution for rectifying the fault. a) acquiring, by a processor, real-time data associated with devices commissioned in a plant from one or more sensing units (110, 112) disposed at the respective devices, wherein the one or more sensing units (110, 112) comprise a plurality of sniffer devices (110A-N) and a plurality of radio frequency, RF, devices (112A-N), with the sniffer devices (110A-N) being wirelessly connected to the plurality of RF devices (112A-N), wherein the real-time data comprises device information and device connectivity status information, and wherein the plurality of RF devices (112A-N) senses the real-time data and transmits the sensed real-time data to the plurality of sniffer devices (110A-N), wherein the plurality of RF devices (112A-N) are any kind of radio frequency identification devices for sensing and tracking each electrical wiring/connection of the plant, wherein each electrical cable/wire(s) has two RF devices (112A-N) physically attached to the two ends of the electrical cable/wire(s), and wherein the RF devices (112A-N) at each end of the electrical cable/wire(s) communicate with each other and transmit the real-time data to the plurality of sniffer devices (110A-N); b) determining connections between the devices in the plant based on the acquired real-time data using a lookup table; c) generating a wiring diagram of the plant based on the determined connections between the devices, wherein the wiring diagram represents the devices located in the plant and physical connections between the devices; d) dynamically generating an interactive wiring diagram by superimposing the wiring diagram with the device connectivity status information associated with respective connections between the devices; e1) identifying a fault in at least one connection in the plant based on the device connectivity status information of the at least one connection; e2) determining a location of the fault in the at least one connection based on the device information; and e3) computing at least one solution to rectify the fault in the at least one connection; e4) generating an alert indicating that the fault exists in the at least one connection; and e5) displaying the fault in the at least one connection on the interactive wiring diagram of the plant, e6) wherein the interactive wiring diagram displays the location of the fault and the at least one solution for rectifying the fault.