Ultrasonic devices claim to get rid of various pests, including carpenter bees. However, there is limited scientific evidence supporting their effectiveness in deterring these insects. It is advisable to rely on proven methods for better results.