Terraria item ID 3118. Terraria 1.4.5.7.
The Lifeform Analyzer is an informational accessory that displays the name of rare enemies, critters, and undiscovered NPCs (see list below) within 81.25 tiles around the player. The Lifeform Analyzer can be purchased from the Traveling Merchant for 5 Gold.
Description from the Terraria Wiki.