I once had a problem with my garage door opener and figured out that its because of the garage door sensor. The garage door beam between them got broken. Absolutely, it needs a replacement. I purchased a new one, and had it installed. There are instructions you can find in the internet. Its as easy as one, two, and three.
more