The first weapon in your arsenal to fight red light camera tickets is to contest the clarity of the photo. Since your vehicle was in motion at the time the picture was taken, there is a good probability the picture will be blurry. Inspect the picture the police department sends you with the ticket.
If you are unrecognizable in the photo that is the first defense you should bring up in court. If the judge cannot say beyond a reasonable doubt that it is you in the picture, the judge cannot find you guilty. It is important to be truthful. Do not say that the person in the photograph is not you if you know it is you. Simply question whether the judge is certain it is you in the picture.
According to the Nolo.com website, if no one from the camera company appears at trial to state that the camera was working properly at the time of the photograph, you can ask the judge to exclude the photos on the grounds that no one is there to authenticate the photo.
In both of the above situations, without the photograph, there is no evidence to convict you. With no evidence to convict you, the judge has no choice but to find you not guilty.
If it is true that you had to run the red light to avoid an accident, you need to say so at your hearing. There are no guarantees but if you are able to explain the situation, the judge may throw out your ticket.
You will need to check your applicable state law but you might be able to fight a red light camera ticket if you were making a legal right hand turn on red. Attorneys have seen red light camera tickets issued in these situations. People can fight the ticket if they can prove they made a legal right hand turn after a complete stop. Attorneys advise that you go to the intersection and take pictures proving this defense. Bring the pictures with you to your hearing.
Consider hiring a traffic ticket attorney. He or she will be familiar with traffic ticket laws and can help prepare a defense for you.