short script to check sensor's post