@Justas Sakalauskas is just plain wrong. Sensors are made exactly for that purpose. They detect collisions/overlaps just like normal fixtures, but they are basically like "ghost" fixtures. Upon collision they do not result in any kind of force being applied to the colliding fixtures to push them apart.
Thus they perfectly fit your use case and they are used this way by many others as well.