Yea we will need more information than that you want code for a barrier sensor