Mechatronics?? Not on a manual transmission. The manual trans is, well, manual. There are sensors and switches on it, and that's all for electronics.
I have attached FSM screen shots for P2765 troubleshooting. If you need other info let me know. Link here to the sensor itself. Not a cheap one, would hate to replace it until confirmed bad. Maybe borrow one from a friend. Never heard of this sensor going bad. But these cars are aging now. Inspect the connector and wiring for damage from road debris.
https://www.nissanpartsdeal.com/part...935-cd80a.html
You can swap this sensor in 15 minutes yourself. Its just on the side of the transmission near the rear. Left side I believe, under the shifter area.