A heat detector would be necessary in the garage, and not a smoke detector. The heat detector should be interconnected with the smokes, so make sure you get one that is compatible with the brand of smokes that you use (Firex, BRK, etc). Heat detectors are also pricey, about $25. Check your supply store.
Anyway, they arent required here in CT or RI in garages, but they are good to have and I recommend installing them, as well as in attics.
Theyre good add-ons and a good way to make some extra money.