Electrical – How to connect a new smart switch to the wiring

electricallightswitch

I think I have a regular 2-way Switch but there are 3 wires connected to it: 2 black wires going to the same screw and a red one going to an upper one. I'm not sure which wire is doing what. How can I identify or know which wire is which? The new switch I have is a smart switch and it's asking me for 2 live, 1 ground, and 1 neutral. Inside the box I could find the neutral wire and also a copper wire, but I don't know the others.

enter image description here

Best Answer

I'm guessing here, so you'll need to investigate and verify.

The black that loops over the screw is your constant hot, and it travels on to supply the other switch or some other part of the circuit. The red is the switched hot to the light. The whites are neutrals, one of which comes back from the light. Bare copper is ground.