Put your reg number in the TfL ULEZ check site. If it says you need to pay, it only applies if you’re actually driving in the zone. The only way to avoid it is by not driving in the ULEZ zone. If you do, the system will pick it up and you will be fined if you haven’t paid.