refactor to make data writer function reusable
read voltage daemon