New Files for JSON command

Why can’t I push to sensors inside the function? Any thoughts?