Why is my arduino closing when i remove a wire?

When removing a wire my arduino uno shuts off and tells me its not connected and this wire i removed is just a wire to a potentiometer so how can it disconnect my arduino

when i connect a wire to a spot on the breadboard the arduino disconnects aswell

It's not normal practice to remove wiring while powered.
You will need to be more specific about what you removed and where.
Also include a drawing of your circuit, complete with whatever power supply you are using and describe which wire you are talking about.
Also include the code (in code brackets)
Possibly read all the intro at the top of the forum .........

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

Your Arduino is trying to tell you "do not change any wiring when powered".

"Just" a wire to a pot
if i had a dollar everytime someone said "I JUST did this" :joy:

Your arduino is an electrical circuit, whatever you connect to it is also an electrical circuit and forms an extension of the first circuit.
This extended circuit affects the first circuit

Removing a Pot is like removing a resistor from a circuit, so you have certainly done something either removed power and caused it to go offline or restart or created a short circuit
and caused it to go offline or restart.
you now just want to know "The What and How"

Well..
we need a schematic
We need an explanation of how it was wired and powered in order to answer that

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.