PEP8
Combine read_env() and read_optical() to common read_hardware()