Welcome to 2CarPros.
What you are describing sounds like a bad transmission range sensor, but I can't see how turning off the engine with it in drive would have caused it to go bad. Take a look at the attached removal and replacement procedure. I'm adding everything for two reasons. First, I want you to make sure nothing with the wiring is loose, damaged, or corroded. If it all appears good, then I would suggest replacement of the sensor. The attached pictures correlate with the directions.
____________________________________________________________
transmission range sensor
2005 Honda Truck Pilot V6-3.5L
Transmission Range Switch
Vehicle Powertrain Management Sensors and Switches - Powertrain Management Sensors and Switches - Computers and Control Systems Transmission Position Sensor/Switch Service and Repair Procedures Transmission Range Switch
TRANSMISSION RANGE SWITCH
Transmission Range Switch Replacement
1. Raise the vehicle, and make sure it is securely. supported.
2. Shift to the N position.
pic 1
3. Re move the transmission range switch connector (A) from its connector bracket (B), then disconnect the connector.
4. Remove the harness clamp (C) from its bracket (D).
pic 2
5. Remove the clamp from the clamp bracket on the transmission housing, and remove the harness holder (A) from the end cover (B).
6. Remove the transmission range switch cover (C), then remove the transmission range switch (D) from the end cover.
pic 3
7. Set the new transmission range switch to the N position. The transmission range switch clicks in the N position.
pic 4
8. Install the transmission range switch (A) on the control shaft (B) gently, then secure it with the bolts. Do not move the switch when tightening the bolts.
9. Install the transmission range switch cover (C), and the harness holder (D) on the end cover (E).
pic 5
10. Connect the transmission range switch connector (A), then install it on its connector bracket (B).
11. Install the harness clamp (C) on its bracket (D).
pic 6
12. Turn the ignition switch ON (II). Move the shift lever through all positions, and check the transmission range switch synchronization with the A/T gear position indicator.
13. Check that the engine can start in the P and N positions, and cannot start in any other shift lever position.
14. Check that the back-up lights come on when the shift lever is in the R position.
15. Allow all the wheels to rotate freely, then start the engine, and check the shift lever operation.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Before replacement, here is a test you can perform to confirm it is bad.
Transmission Range Switch Test
pic 7
1. Remove the transmission range switch connector (A) from its connector bracket (8), then disconnect the connector.
pic 8
Connector Terminal Specifications
pic 9
2. Check for continuity between terminals at the connector. There should be continuity between the terminals in the following table for each switch position.
3. If there is no continuity between any terminals, check the transmission range switch installation. If the installation is OK, replace the switch.
___________________________________________________________
You will need to check the pins indicated for continuity based on gear selection. Here are a few links you may find helpful when testing.
https://www.2carpros.com/articles/how-to-use-a-test-light-circuit-tester
https://www.2carpros.com/articles/how-to-use-a-voltmeter
https://www.2carpros.com/articles/how-to-check-wiring
+++++++++++++++++++++++++++++++++++++++++++++
Let me know if this helps or if you have other questions.
Take care,
Joe
Images (Click to make bigger)
SPONSORED LINKS
Tuesday, July 2nd, 2019 AT 9:36 PM