3 Float/Reed Switches Controlling a 16 Pixel RGB LED Ring via UNO

Good evening,

My latest project is for a level indicator on my chicken coops water supply. I am using an Arduino UNO, 3 reed float switches and a 16 pixel RGB LED Ring (adafruit Neopixel). I have the switches at 3 different positions in the water tank. I am wanting to light the RGB LED ring a different colour depending on which switch is closed. The bottom one red, the middle orange and when at the top, green.

I have the LED ring working. I also can have the switch working on its own. But not controlling the LED. I have no idea what to do next. I am thinking that i need to get the switch turning the LEDs on. Then I can start thinking about using all three at once.

I am hoping someone can help? It seems a simple task for the arduino to do but I am very new at this so I'm struggling a little bit.

Thank you all in advance.

Here's the code for each switch to turn on a different LED:

// constants won't change. They're used here to
// set pin numbers:
const int buttonPin1 = 2;     // the number of the floatswitch pin 2
const int ledPin1 =  3;      // the number of the LED pin 3
const int buttonPin2 = 4;     // the number of the floatswitch  pin 4
const int ledPin2 =  5;      // the number of the LED pin 5
const int buttonPin3 = 6;     // the number of the floatswitch  pin 6
const int ledPin3 =  7;      // the number of the LED pin 7

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin1, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin1, INPUT);
    // initialize the LED pin as an output:
  pinMode(ledPin2, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin2, INPUT);
  pinMode(ledPin3, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin3, INPUT);
}

void loop() {
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin1);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    // turn LED on:
    digitalWrite(ledPin1, HIGH);
  } else {
    // turn LED off:
    digitalWrite(ledPin1, LOW);
  }

  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin2);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    // turn LED on:
    digitalWrite(ledPin2, HIGH);
  } else {
    // turn LED off:
    digitalWrite(ledPin2, LOW);
  }

  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin3);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    // turn LED on:
    digitalWrite(ledPin3, HIGH);
  } else {
    // turn LED off:
    digitalWrite(ledPin3, LOW);
  }
  
}

Now just need it to control one RGB LED instead of all 3 Standard LEDs (different colour for different switch positions).