Has write refactored to write digital sensor first.