The 231 plug wont fit the sensor. You need this:
https://www.amazon.com/dp/B089VHHCD7?tag=wranglerorg-20
Part S638 if link dies in the future.
I tried to add a new pin to the empty spot for the light in the dash connection, I went to a JY and found a 2000 Cherokee, all Cherokees are pre-wired for the light whether they have a 242 or 231, I removed the gauge cluster and took both the left and right connector in case I needed a spare (glad I did) I could not find a way to depin the connector without destroying it, even with a fancy depin kit. Even after I got one of the pins out there is no way I could get it into the empty spot on the existing TJ connector, In the end I cut off the existing connector and spliced in the Cherokee connector. You have to run a new wire from the connector all the way to the new plug for the sensor.
Even though I had diagrams for both 231 and 242 connectors I had a hard time getting the wiring right, it took a lot of trial and error. Maybe I am just not smart enough to read the diagrams right. Plus the connector from Amazon has an extra wire. What worked was:
White wire on new connector to new wire to dash
Yellow wire on new connector to black wire with red stripe on old connector
Red wire on new connector to black wire on old connector
Black wire on new connector unused
Also, even though I am using a shift gate from a 242 I had to modify it. not sure why but I needed more throw in both the front and back to get all 5 options.