"You should demand that your rental agreement stipulates that your landlord must give at least 24 hours notice before entering your home. This is pretty standard, but in cases where it's not yet in the contract make sure to have it added."
Depending on what state you live in, that doesn't have to be part of the rental agreement--it's part of the law. I believe that's part of the right to "quiet enjoyment".