After fiddling everything for several hours I didn't manage to find a bad connection or to solve the problem. I ended up changing the sensors for thermocouple cartridges and after connecting them directly to the board they just work, so I guess that's the end the problem for now.
Thanks to everyone for the quick response and the help.