<p>In <a href="https://github.com/MarlinFirmware/Marlin/blob/bugfix-1.1.x/Marlin/pins_RAMPS.h" rel="nofollow noreferrer">pins_RAMPS.h</a> you find which pins are used for which thermistor:</p>

<pre>
//
// Temperature Sensors
//
#define TEMP_0_PIN         13   // Analog Input
#define TEMP_1_PIN         15   // Analog Input
</pre>

<p>To use the other thermistor, you would need to swap the numbers:</p>

<pre>
//
// Temperature Sensors
//
#define TEMP_0_PIN         15   // Analog Input
#define TEMP_1_PIN         13   // Analog Input
</pre>

CC BY-SA 4.0
2020-08-23T09:03:57.073Z
Well I am having same problem, I changed the pin no and pin 15 is working but all other pin (12, 13, 14) are not working. I am using Anycubic Trigorilla... Can I use any other pin for this?
Wasif Shahid
CC BY-SA 4.0
2019-06-08T21:40:49.183Z
2019-06-08T21:40:49.183Z
0scar
<p>I have a Marlin driven Prusa i3 clone, by accident I cut through both thermistor wires for the hotend while it was powered on. The Arduino reset and the hotend thermistor no longer work.</p>

<p>Since there is a spare thermistor input on the RAMPS board I was wondering if I can change the input pin assigned to the hotend thermistor in the software? I've looked around (the code and the internet) and so far have only found out how to assign the thermistor type for the spare input, not how to tell Marlin to make <code>temp_sensor_2</code> be the input used for the hotend?</p>

<p>If anyone could help me figure out how to change the hotend thermistor input number I would be greatly appreciative!</p>

<prusa-i3><marlin><hotend><thermistor>
Change hotend thermistor input in Marlin
user16708
# Change hotend thermistor input in Marlin

(Asked by: username_0 on 2019-06-08)

I have a Marlin driven Prusa i3 clone, by accident I cut through both thermistor wires for the hotend while it was powered on. The Arduino reset and the hotend thermistor no longer work.

Since there is a spare thermistor input on the RAMPS board I was wondering if I can change the input pin assigned to the hotend thermistor in the software? I've looked around (the code and the internet) and so far have only found out how to assign the thermistor type for the spare input, not how to tell Marlin to make `temp_sensor_2` be the input used for the hotend?

If anyone could help me figure out how to change the hotend thermistor input number I would be greatly appreciative!

**Tags:** prusa-i3, marlin, hotend, thermistor


---

## 1 answers

### Answer by username_1 on 2019-06-08. Score: 4

In [pins\_RAMPS.h](https://github.com/MarlinFirmware/Marlin/blob/bugfix-1.1.x/Marlin/pins_RAMPS.h) you find which pins are used for which thermistor:

```

//
// Temperature Sensors
//
#define TEMP_0_PIN         13   // Analog Input
#define TEMP_1_PIN         15   // Analog Input

```

To use the other thermistor, you would need to swap the numbers:

```

//
// Temperature Sensors
//
#define TEMP_0_PIN         15   // Analog Input
#define TEMP_1_PIN         13   // Analog Input

```

> **Comments:**
> **username_2**: Well I am having same problem, I changed the pin no and pin 15 is working but all other pin (12, 13, 14) are not working. I am using Anycubic Trigorilla... Can I use any other pin for this?  

---

