Arduino MKR1010

Hi everybody, I’m new in this community and thinger.io, i try to make some sample to understand how it’s work, but I can not able to read a simple pin , and i check every where and all say just put instruction, but doesn’t work, where a mistake? this is my simple code

thing[“sens”] >> [](pson& out){
out = tasto; };
}

void loop() {
tasto=digitalRead(5);
Serial.println(tasto);
thing.handle();
}

thank you for patience
Alby