How to fix value from digital input

Hello, please help me hownto fix this problem. i want read data from digital input with source in. incoming data from source in is array and i separate it so like this. comment "pinvalue" come out too. i want just number 1 or 0 coming out. how fix it? thank you

Have a look at the node red docs page on Working with Messages. That shows you how to determine the path to an object by examining it in the debug pane (after sending it to a debug node). Then you should be able to use a Change node to move the data you want to msg.payload.
If after doing that you still can't work it out then show us what you see in a debug node showing the message you currently have and explain exactly what you would like to get out.

thank you, its working:)