Terraria item ID 539. Terraria 1.4.5.7.
The Dart Trap is a trap that can be found naturally placed in Cavern layer and Dungeon. It fires a dart when triggered via wire which does not consume any ammunition. It has a cooldown of (Desktop, Console and Mobile versions) 3 1/3 seconds / (Old-gen console and 3DS versions) 3 seconds between firing. The darts deal 40 / 80 / 120 damage and inflict Poisoned for 10 / 20 / 25 seconds to players (20 damage and 10 seconds of Poisoned to NPCs, enemies, and critters). (Desktop, Console and Mobile versions) Dart Traps can be rotated 90ยฐ with a hammer.
Description from the Terraria Wiki.