HC-SR04 Sensor with LED lights

You have two of setup() and two of loop().

You can only have 1. Combine them and delete 1 of each.