Hi,
This post has been around for a LONG time, but it's not flagged as a duplicate - I wondered if you got it working.
I have some ideas as to why it is erratic.
If it interests anyone I can give some hints & tips on how to use both sensors at the same time.