adding in code to be able to check energy detection values