No worries, the game can be really confusing sometimes, and there’s often no clear diegetic hints on how to handle things.
Also, I’m sure you’ve noticed already but sneaking will not set off sensors, also walking on wool/carpet, and wool blocks can be used to block off sensors/shriekers to keep them from triggering.