A wireless sensor system is installed inside pipelines using sensors and wireless transceivers that are small, low-cost, and rugged. The objective is monitoring the pipeline and recommending maintenance and repair at specific locations in the pipeline. Maintenance includes detection of leaks and prevention of catastrophic failures as a result of internal corrosion or other damage, such as third party mechanical damage, using multitude of sensors. After establishing the wireless sensor network the network is activated so the sensor can make measurements periodically or continuously using instructions transmitted via the base station. The sensor data from the various sensors are transmitted inside the pipe and extracted to access points in the pipeline to a remote computer that stores the data within the computer memory. The sensed information can be used for monitoring as well as analysis using a recommendation engine to provide maintenance and repair alerts.