I plugged my SN04-N into the 5v supply line works fine.
Brown wire to 5V
Black wire to NO contact
Blue wire to Ground
Wired like this
I know I got confused because Black is ground but in this case it is NO contact switch. And blue is ground
Brown wire to 5V
Black wire to NO contact
Blue wire to Ground
Wired like this
I know I got confused because Black is ground but in this case it is NO contact switch. And blue is ground