Now my next challenges is to connect a PT500 to analog input of unipi and read the value.
Tried this function but it does not work
var status = JSON.parse(msg.payload);
var newMsg = {};
if (status.dev == "ai" && circuit == 1 )
{
newMsg.payload = status.value;
return newMsg;
}