If one has no intention at all, rather he does everything just because he is used to it, it cannot go up. As the Zohar says, a mitzvah without love and fear doesn't go up to G-d.