Had the same issue as everyone above, and the hood latch replacement was the fix. Toyota knows of the problem, and has known since 10/28/11. Go to a Toyota dealer parts desk and ask them about Technical Service Bulletin: T-SB-0171-11. To me, there should have been a recall. Because mine didn't exhibit the problem until 75k miles, I got stuck paying for the replacement of their KNOWN defective part. I also spent a month as the pariah of the neighborhood, as my alarm kept going off in the middle of the night. The part costs about $85, and unless you are willing to do the labor yourself, it will probably cost you another $100+ to have it installed. The part number is 53510-08041. Replacing the part isn't too bad. Pop the grill off first (there are six plastic pop rivets you have to *carefully* pull up). Then remove the three 10mm screws that secure the latch to the car, one of which is covered with a cap (just use a screwdriver to dig it out). Disconnect the release cable and the alarm switch, and it's out. Reverse the process for the install. Takes about 20 - 30 min.
* Didn't notice "page 2" of the posts until after I wrote my reply. I think it still has value though, so I will leave it.