Listening posts developed as an early warning system along a border or hostile front. Early posts used nothing more than a trained ear or guard dogs to listen for the enemy when visible detection was not possible. Beginning with the 20th century, listening posts employed electronic microphones to detect even a single infiltrator making a midnight raid. Listening posts also served as a tool for border patrols to monitor illegal border crossings and drug smuggling.