more generic sensor setup