Hi harsha,
which sensor (type, manufacturer) do you use?
Did you verify the correct conneciton of Arduino and this sensor?
Can you read the sensor using the usual Arduino IDE?
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019