In your server function add_measurement
you do:
created_date = datetime.datetime.now()
And then pass that variable to a column that is expecting a date. You’re passing a datetime into a date field.
Either change the field to be a datetime, or change the line to get the current date:
created_date = datetime.date.today()