Hi everybody
I hope this sketch is to read by you
Question is why the sketch is not working
with best wishes
#define BLYNK_PRINT Serial// Comment this out to disable prints and save space
#include <OneWire.h>
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <RCSwitch.h>//nodig voor Promax
int value=0;
char auth[] = “xxxxx”;// Je Blynk auth code.
#define W5100_CS 10
#define SDCARD_CS 4
RCSwitch mySwitch = RCSwitch();
void setup()
{
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH);
Serial.begin(9600);
Blynk.begin(auth);
mySwitch.enableReceive(0);// This is D2
}
BLYNK_READ(V5)
{
if (mySwitch.available()){ // as soon the rf receiver is receiving a signal it is detected.
int value=mySwitch.getReceivedValue();
Serial.println(value);// to show value on serial monitor
Bynk.virtualwrite(V5,value);}
}
void loop()
{
Blynk.run();
}