Need help coding for engineering class

In my EDD class we are making our own product and part of the our product requires some code and wiring. I don’t really know how to do either but I am learning. The product itself is a Sunscreen reminder clip and it is able to detect UV rays which reaches a threshold and then alerts the user to re apply their sunscreen. It also has a button when pressed allows the user to choose their skin type changing the UV threshold. I have a Adafruit Flora, Lilypad Button Board, and Flora UV Sensor.
Here is the code

#include <Wire.h>
#include "Adafruit_SI1145.h"
#include <Adafruit_NeoPixel.h>
Adafruit_SI1145 uv = Adafruit_SI1145();

#define PIN 8
#define PIN 9

Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);

  const int  buttonPin = 9;    // the pin that the pushbutton is attached to
  const int ledPin = 8;       // the pin that the LED is attached to
  
  // Variables will change:
  int buttonPushCounter = 0;   // counter for the number of button presses
  int buttonState = 0;         // current state of the button
  int lastButtonState = 0;     // previous state of the button
  int Buttoncount = 0;

  uint32_t sinceTime;
  uint32_t markerTime;
  boolean shouldChime = false;
  float UVindex;
  float UVthreshold = 0.05;
  uint32_t reapplyInterval = 10000; // 15 minutes = 900000 milliseconds. One hour = 3600000 milliseconds. Two hours = 7200000 milliseconds
   
void setup() {
  strip.begin();
  strip.setBrightness(50);
  strip.show(); 
  // Initialize all pixels to 'off'
  // initialize the button pin as a input:
  pinMode(buttonPin, INPUT);
  // initialize the LED as an output:
  pinMode(ledPin, OUTPUT);
  // initialize serial communication:
  Serial.begin(9600);
}



void Button() {

  

  
  
  
    // read the pushbutton input pin:
    buttonState = digitalRead(buttonPin);
  
    // compare the buttonState to its previous state
    if (buttonState != lastButtonState) {
      // if the state has changed, increment the counter
      if (buttonState == HIGH) {
        // if the current state is HIGH then the button went from off to on:
        buttonPushCounter++;
        Serial.println("on");
        Serial.print("number of button pushes: ");
        Serial.println(buttonPushCounter);
      } else {
        // if the current state is LOW then the button went from on to off:
        Serial.println("off");
      }
      // Delay a little bit to avoid bouncing
      delay(50);
    }
    // save the current state as the last state, for next time through the loop
    lastButtonState = buttonState;
  
  
    // turns on the LED every four button pushes by checking the modulo of the
    // button push counter. the modulo function gives you the remainder of the
    // division of two numbers:
    if (buttonPushCounter == 1) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 1;
    } else {
      digitalWrite(ledPin, LOW);
    }
     if (buttonPushCounter == 2) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 2;
    } else {
      digitalWrite(ledPin, LOW);
    }
     if (buttonPushCounter == 3) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 3;
    } else {
      digitalWrite(ledPin, LOW);
    }
     if (buttonPushCounter == 4) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 4;
    } else {
      digitalWrite(ledPin, LOW);
    }
     if (buttonPushCounter == 5) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 5;
    } else {
      digitalWrite(ledPin, LOW);
    }
     if (buttonPushCounter == 6) {
      digitalWrite(ledPin, HIGH);
      Buttoncount = 6;
    } else {
      digitalWrite(ledPin, LOW);
    }
  }


void loop() {
  if (Buttoncount = 1){
    UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(255, 0, 0), 500); // Red
  
  }
    if (Buttoncount = 2){
     UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(0, 255, 0), 500); // Green
  
  }
    if (Buttoncount = 3){
     UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(0, 0, 255), 500); // Blue
  
  }
    if (Buttoncount = 4){
     UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(255, 255, 0), 500); // Yellow
  
  }
    if (Buttoncount = 5){
     UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(255, 225, 225), 500); // White
  
  }
    if (Buttoncount = 6){
     UVthreshold = 0.05;
    reapplyInterval = 10000;
    
    // Some example procedures showing how to display to the pixels:
    (strip.Color(255, 0, 255), 500); // Magenta
    
  }
 
  

  

  
    if (sinceTime > reapplyInterval){
    Serial.println("===================");
    UVindex = uv.readUV(); 
    UVindex /= 100.0; // the index is multiplied by 100 so to get the integer index, divide by 100!  
    Serial.print("UV: ");  Serial.println(UVindex);
    Serial.print("Seconds until next alert: ");  Serial.println((reapplyInterval-sinceTime)/1000);
    delay(1000);
    
    sinceTime = millis()-markerTime;
    
    if (UVindex > UVthreshold){ //only chime when we are currently outside
      resetTimer();
    }
    if (sinceTime > reapplyInterval) { //check to see if we've exceeded the time limit
      
      resetTimer; 
    }
    
  }
}
  void resetTimer(){
    markerTime = millis();
    sinceTime = 0;
  
  }

Here is a picture of the wiring

You don't say what your question is but this is wrong

#define PIN 8
#define PIN 9

Pin could be 8 or it could be 9 but it can't be both

  if (Buttoncount = 1)

You might like to check this too (there are more like it in the code)

Hello and welcome
++Karma; // For posting your code correctly on your first post and for the fact you've obviously put some thought into it.

Here is a picture of the wiring

No, not seeing that....

Do you have a question?

The problems I am currently having is that when the button is pressed the LED doesn’t turn on or change color of course. I also just don’t know some formatting things or term things like I don’t know what define means and such. Here is the picture file.


What is that, cotton thread?

Start by fixing the problems pointed out in posts 1 and 2 then post the corrected code

PaulRB:


What is that, cotton thread?

O M G ! ! !

You appear to have used cotton to 'wire' things together. Cotton is an insulator, it was used as such on early types of cable. Using cotton as wire isn't going to work.

From Adafruit product page:

There are 14 sewing tap pads for attachment and electrical connections. Data buses are interleaved with power and ground pads for easy module and sensor attachments without worrying about overlapping traces which are not possible with conductive thread.

Maybe we are seeing conductive thread in the picture.

If so, it is intended to be sewn onto fabric so that the threads are separated and cannot short circuit. In the picture it looks like the threads will short circuit against each other and against other parts of the boards. This could easily cause damage to the circuits, or the failures the OP has described.

I suggest threading the conductive thread through appropriate lengths of shrink sleeve (no need to shrink it with heat) or drinking straws, and trim off any loose strands to help prevent short circuits.

Maybe we are seeing conductive thread in the picture.

Looks like it to me. I made a stretch sensor out of strands of wool and conductive thread like this woven together with French knitting on a knitting Nancy.