# Cannot set com state error

**URL:** <https://forum.arduino.cc/t/cannot-set-com-state-error/1046402>\
**Category:** General Guidance\
**Created:** [October 26, 2022, 9:52pm UTC](https://forum.arduino.cc/t/cannot-set-com-state-error/1046402 "2022-10-26T21:52:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![vbyrd2](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vbyrd2](https://forum.arduino.cc/u/vbyrd2)\
**Post date:** [October 26, 2022, 9:52pm UTC](https://forum.arduino.cc/t/cannot-set-com-state-error/1046402/1 "2022-10-26T21:52:36Z")

</div>

When I've tried to upload my code to my arduino uno I keep this error:

avrdude ser\_open() can't set com-state for "\.\COM3"

I have searched the forums and tried the advice given, but nothing is working and I'm starting to believe it's the thermocouple I am using (SEN 30005-R02).  
I have tried multiple cords, multiple arduino unos, multiple computers, and deleting and redownloading the IDE. I even went so far as trying it on the online IDE just to ensure I had the latest version, and still no luck. I have looked into the driver and have updated them.  
Here's the weird part and why I think it is the thermocouple (but I could be wrong which is why I'm making this post), but every time I go to upload the code I get the error, and when I unplug the thermocouple from my setup and off of the arduino it will upload my code to the arduino, and after I plug in my thermocouple back in, it is not reading a temperature value, but it is recognizing the thermocouple converter. The really weird thing is that as soon as I have the code uploaded to the arduino, plug in the thermocouple and barely wiggle the thermocouple I get the error and I can't do anything else. I would also like to add that I have tried multiple thermocouples and have them plugged in exactly how the manufacturer's github states, and I am just running their basic code to just try and read a value off of it.

Here is the link to the thermocouple datasheet/github link:

[https://www.playingwithfusion.com/include/getfile.php?fileid=7112](https://www.playingwithfusion.com/include/getfile.php?fileid=7112)

I am no expert on thermocouples or what could possibly be going wrong here, so if anyone has the slightest idea, please leave a comment, I am at a loss.

---

_[View the full topic](https://forum.arduino.cc/t/cannot-set-com-state-error/1046402)._
