I want to create an electrical circuit that powers up the computer when a sensor is activated.
This sensor is in parallel with the power switch button.
As far as I understood from reading on different parts of the internet, the power switch button is part of a pull-up resistor circuit that goes into the motherboard as seen here in schema 1.
My idea of the sensor electrical schema that I want to implement is schema 2
But the sensor also needs a +5V supply. I noticed there is a +5V pin on the motherboard where the power button switch connects, but I am not sure if I can use this for my sensor. Is it reserved for something else (speaker?), is the current limited to the motherboard (sensor is going to take up at most a few milliamps) or can I go ahead and use this +5V/GND for my project?
Thanks in advance
Note: I am new to hardware and electrical engineering, so I apologize if the question is a bit silly.
Edit: Thanks for the replies. The sensor is a regular motion sensor (doesn't take more than 200mA if I read it correctly). Also, what's the advantage of using a relay instead of using a transistor for this project, other than separating the current for the 2 circuits. Would one of these relays work?