I want to hang some shelves but first I want to make sure I don’t hit any electrical wiring buried in the wall with my anchors. What’s the best way to do this?

By using a stud finder with a built-in AC current detector, you can trace hot wiring behind walls to make sure you drill in the right place.