arduino firebase pinmode set up

 #include <ESP8266WiFi.h>
#include <FirebaseArduino.h>

#define FIREBASE_HOST ""
#define FIREBASE_AUTH "*********"

#define WIFI_SSID "OmAr"
#define WIFI_PASSWORD "*********"

const int  buttonPin = 8;    

void setup() {
 pinMode(buttonPin, INPUT);
 while (WiFi.status() != WL_CONNECTED) {
 Serial.print("connected: ");

void loop() {

this code not gives like this error in serial monitor :
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d

but when i remove the pinMode(); it warks well, it does not give any error to get and send data on firebase, i am using arduino UNO and eps8266 wifi module how can i solve this problem

What is "firebase"? Post a link to the library.

What Arduino are you using?

What project are you trying to create?

What have you connected to your Arduino?