I bought a standard 24v transformer and attached a plug to one end so I can plug it into a standard outlet. Can I just mount it to the wall by the outlet? Should I leave some space between the back and the wall, or does that not matter? I’m concerned some portion of it may get hot, or needs some air by it, etc.

[![enter image description here](https://i.stack.imgur.com/DnA42.jpg)](https://i.stack.imgur.com/DnA42.jpg)

[![enter image description here](https://i.stack.imgur.com/qkcR5.jpg)](https://i.stack.imgur.com/qkcR5.jpg)