i am calling this function onload().i want to read the data from the pin 5 and store it in a variable.in this code i am storing in it variable p. how to store the data of pin-5 in a variable
function new_func(5l){
var value = 5
var p = “/digitalRead?pin=”+value;