In Godot Area2D has two signals that are emitted when something enters it’s collision shape.
body_entered
emitted whenPhysicsBody2D
enters the areaarea_entered
emitted whenArea2D
enters the area
The detecting area needs to mask the layer, that the detected are is on.