RLFIN Command always returns 0 value to ardunio

Can we see the whole sketch please? In code tags? How to use this forum

Once you call "query", how do you know if serial was available? Is linequery just some undefined value then?