In this paper, a MATLAB tool for the automatic detection of the best locations to install a wireless sensor network (WSN) is presented. The implemented code works directly on high-resolution 3D point clouds and aims to help in positioning sensors that are part of a network requiring inter-visibility, namely, a clear line of sight (LOS). Indeed, with the development of LiDAR and Structure from Motion technologies, there is an opportunity to directly use 3D point cloud data to perform visibility analyses. By doing so, many disadvantages of traditional modelling and analysis methods can be bypassed. The algorithm points out the optimal deployment of devices following mainly two criteria: inter-visibility (using a modified version of the Hidden Point Removal operator) and inter-distance. Furthermore, an option to prioritize significant areas is provided. The proposed method was first validated on an artificial 3D model, and then on a landslide 3D point cloud acquired from terrestrial laser scanning for the real positioning of an ultrawide-band WSN already installed in 2016. The comparison between collected data and data acquired by the WSN installed following traditional patterns has demonstrated its ability for the optimal deployment of a WSN requiring inter-visibility.integrated with sensors that can gather information through wireless links [7]. Their use presents several advantages over traditional monitoring techniques, such as the capability to work in rough and hardly accessible terrain, thanks to the absence of wired structures [8]; the possibility to analyze data from a multipoint perspective [9]; the ease and speed of installation [10]; and the adaptability of sensors to be integrated with existing monitoring techniques [11,12]. To make the most out of a WSN, optimal sensor deployment (i.e., equal and thoughtful distribution) is essential, and, to this aim, sensor-deployment problems were studied in several contexts [13]. For instance, Wang et al. [14] geometrically analyzed the relationship between coverage and connectivity in a WSN considering an obstacle-free environment, and Zou and Chakrabarty [15] proposed a virtual force algorithm as a sensor-deployment strategy after an initial random placement of sensors. For some types of sensors, line of sight (LOS) cannot be neglected. Information is in fact properly transmitted if the transmitter and receiver stations are in view of each other without any obstacle. The LOS of each emitting sensor is therefore an important issue to consider when positioning two or more receivers.Researchers are increasingly focusing on LOS-based WSNs that use the same signal both for communication and ranging purposes, allowing the relative distance between nodes to be detected and landslide deformation to be assessed [16][17][18][19]. Depending mainly on their wavelength and the characteristics of the material to cross, waves can follow several types of behavior, and problems connected to unfavorable LOS may lead to the absence of data or inaccurate measurements due to a delay ...