Replace tabs with spaces for consistency.
Remove closing PHP tag.
Cast humidity value to double and prevent remote error.
Display error even when it's not proper JSON.
Retrieve humidifier info when available.