Custom Load Monitoring

Want to do custom load monitoring on the 48V system using a current sense resistor, an opamp, and a mosfet. How I think it should look right now:

Neet to figure out how opamps work and how to implement this.