Hi sorry for the poor schematic. I want to use a MOSFET H-Bridge to drive a linear actuator based on outputs from a microcontroller. The actuator I'm using has inbuilt limit switches so when it reaches its maximum point the switch will be toggled and there will be no current across the motor. For the program I'm writing to the microcontroller I need to know the full range of motion of the actuator, and so I was thinking of having the gate of an NPN BJT connected to the drain of M1 with its emitter going back to the microcontroller so that as long as there is current across the motor a signal will be sent back to the microcontroller, and when the limit switch is toggled the signal being sent back will stop and I will know the range of motion from that. Is this a viable option or does M1 need to be grounded for the circuit to operate as intended. If it is a viable option, how should I reduce the voltage and current so that the BJT I use can handle it?