You’re absolutely right that the mechanism that’s causing the wave function to collapse is the presence of whatever piece of equipment the particle is hitting.
It’s by no means clear that this is true; it depends on where you fall on interpretational questions. Hell, probably the leading approaches suggest that the wave function doesn’t collapse at all, it just appears to when our brains become entangled with the experiment.