Technology should be used in a meaningful way, not because it is easily accessible. For example, instead of punishing students who have their phones out, redirect the situation into, "while you have that out can you research this and share with the classroom?" It will start to show students that just because they have the phone on them at all times, in the classroom it should only be utilized as an educational tool. Another example would be to establish with your students that computers are not for play but for learning. This not only will help enforce rules in the classroom but it will build a trust in the student that they are allowed to use this wonderful piece of equipment only if it is in a positive and educational way.