A low-cost versatile data logging system for ecological applications