I'm currently replacing the one for my car. If it's anything like the M30, which I believe it's simular, I just took the airbox out to give me more room, I think on the m50 the washer fluid resivior is where my airbox is. I pushed the rad hose to the side and unbolted the CPS with a #5 allen key (I believe) from the mount and unplugged it from the top and pulled it out. You might need to take your fan out to make room. Once you see the sensor just follow the wire up to see where its connected. took me all of 6 minutes.
Yellow arrow is the sensor on its aluminum mount.