For my first project I succesfully made a motion detector using Motion PIR and MEGA 2560. I would like to add a second sensor to the same unit (Sonar), so I can have the microcontroller notify the Pi that whatever it is detecting is really close (since I believe the max range for Sonar is 3 feet).
I only have one 5V supply. Is my only option to cut the wire and piggy back off the same pin? I'm sorry for the lack of correct terminology as I just started learning last week. Also, is it even possible to have two sensors on a single core microcontroller since we can't multithread?