 const int buzzer2 = 15; //D8
 WiFiClient espClient;
 PubSubClient client(espClient);
+Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, 12, NEO_GRB + NEO_KHZ800);
 
 void setup() {
   delay(1000);

  }
  Serial.println();
  if((char)payload[0] == 'k') {
    led_flash(0, 0, 255, 1000);
    buzz(2, 2, 512);
    Serial.println("Es hat an der Tür geklingelt!");
  } else if((char)payload[0] == 'o') {
    led_flash(0, 255, 0, 1000);
    buzz(1, 1, 1024);
    Serial.println("Zugelassen!");
  } else if((char)payload[0] == 'n') {
    led_flash(255, 0, 0, 1000);
    buzz(6, 6, 175);
    Serial.println("Abgelehnt!");
  } else {
    led_flash(255, 255, 255, 1000);
  }
  payload = 0;
}

//LED mit RGB-Wert blinken lassen
void led_flash(byte red, byte green, byte blue, int ms) {
  analogWrite(led_R, red);
  analogWrite(led_G, green);
  analogWrite(led_B, blue);
  delay(ms);
  analogWrite(led_R, 0);
  analogWrite(led_G, 0);

#include <Adafruit_NeoPixel.h>

#include <ESP8266WiFi.h>
#include <PubSubClient.h>

